﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001067 RID: 4199
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournReviveAvatarScRsp : IMessage<RogueTournReviveAvatarScRsp>, IMessage, IEquatable<RogueTournReviveAvatarScRsp>, IDeepCloneable<RogueTournReviveAvatarScRsp>, IBufferMessage
	{
		// Token: 0x170034F9 RID: 13561
		// (get) Token: 0x0600BB8E RID: 48014 RVA: 0x001F950B File Offset: 0x001F770B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournReviveAvatarScRsp> Parser
		{
			get
			{
				return RogueTournReviveAvatarScRsp._parser;
			}
		}

		// Token: 0x170034FA RID: 13562
		// (get) Token: 0x0600BB8F RID: 48015 RVA: 0x001F9512 File Offset: 0x001F7712
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournReviveAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170034FB RID: 13563
		// (get) Token: 0x0600BB90 RID: 48016 RVA: 0x001F9524 File Offset: 0x001F7724
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournReviveAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x0600BB91 RID: 48017 RVA: 0x001F952B File Offset: 0x001F772B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournReviveAvatarScRsp()
		{
		}

		// Token: 0x0600BB92 RID: 48018 RVA: 0x001F9534 File Offset: 0x001F7734
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournReviveAvatarScRsp(RogueTournReviveAvatarScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueReviveCost_ = ((other.rogueReviveCost_ != null) ? other.rogueReviveCost_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BB93 RID: 48019 RVA: 0x001F9580 File Offset: 0x001F7780
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournReviveAvatarScRsp Clone()
		{
			return new RogueTournReviveAvatarScRsp(this);
		}

		// Token: 0x170034FC RID: 13564
		// (get) Token: 0x0600BB94 RID: 48020 RVA: 0x001F9588 File Offset: 0x001F7788
		// (set) Token: 0x0600BB95 RID: 48021 RVA: 0x001F9590 File Offset: 0x001F7790
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170034FD RID: 13565
		// (get) Token: 0x0600BB96 RID: 48022 RVA: 0x001F9599 File Offset: 0x001F7799
		// (set) Token: 0x0600BB97 RID: 48023 RVA: 0x001F95A1 File Offset: 0x001F77A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData RogueReviveCost
		{
			get
			{
				return this.rogueReviveCost_;
			}
			set
			{
				this.rogueReviveCost_ = value;
			}
		}

		// Token: 0x0600BB98 RID: 48024 RVA: 0x001F95AA File Offset: 0x001F77AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournReviveAvatarScRsp);
		}

		// Token: 0x0600BB99 RID: 48025 RVA: 0x001F95B8 File Offset: 0x001F77B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournReviveAvatarScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueReviveCost, other.RogueReviveCost) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BB9A RID: 48026 RVA: 0x001F9608 File Offset: 0x001F7808
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueReviveCost_ != null)
			{
				num ^= this.RogueReviveCost.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BB9B RID: 48027 RVA: 0x001F965D File Offset: 0x001F785D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BB9C RID: 48028 RVA: 0x001F9665 File Offset: 0x001F7865
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BB9D RID: 48029 RVA: 0x001F9670 File Offset: 0x001F7870
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueReviveCost_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.RogueReviveCost);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BB9E RID: 48030 RVA: 0x001F96CC File Offset: 0x001F78CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueReviveCost_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueReviveCost);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BB9F RID: 48031 RVA: 0x001F9724 File Offset: 0x001F7924
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournReviveAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueReviveCost_ != null)
			{
				if (this.rogueReviveCost_ == null)
				{
					this.RogueReviveCost = new ItemCostData();
				}
				this.RogueReviveCost.MergeFrom(other.RogueReviveCost);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BBA0 RID: 48032 RVA: 0x001F978C File Offset: 0x001F798C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BBA1 RID: 48033 RVA: 0x001F9798 File Offset: 0x001F7998
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.rogueReviveCost_ == null)
						{
							this.RogueReviveCost = new ItemCostData();
						}
						input.ReadMessage(this.RogueReviveCost);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004B80 RID: 19328
		private static readonly MessageParser<RogueTournReviveAvatarScRsp> _parser = new MessageParser<RogueTournReviveAvatarScRsp>(() => new RogueTournReviveAvatarScRsp());

		// Token: 0x04004B81 RID: 19329
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004B82 RID: 19330
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04004B83 RID: 19331
		private uint retcode_;

		// Token: 0x04004B84 RID: 19332
		public const int RogueReviveCostFieldNumber = 13;

		// Token: 0x04004B85 RID: 19333
		private ItemCostData rogueReviveCost_;
	}
}
